﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CqusInfo.RAL.Community
{
    /// <summary>
    /// tb_Diary  日志表
    /// </summary>
    public class DiaryModel
    {
        public string c_vc_dId { get; set; }
        public string c_vc_userName { get; set; }
        public string c_vc_dtId { get; set; }
        public string c_ntx_content { get; set; }
        public DateTime c_dt_dateTime { get; set; }
        public Int32 c_i_type { get; set; }
        public Int32 c_i_commentNO { get; set; }
        public Int32 c_i_readNO { get; set; }
        public Int32 c_i_open { get; set; }
        public Int32 c_i_reprintNO { get; set; }
        public Int32 c_shareNO { get; set; }
        public bool c_b_isDel { get; set; }

        /// <summary>
        /// 无参构造函数
        /// </summary>
        public DiaryModel()
        {

        }

        /// <summary>
        /// 有参构造函数
        /// </summary>
        /// <param name="dId">tb_Diary ID</param>
        /// <param name="userName">用户名</param>
        /// <param name="dtId">tb_Diary_Type  日志类型ID</param>
        /// <param name="content">内容</param>
        /// <param name="dateTime">发表日期</param>
        /// <param name="type">类型日记类型（0：私密日记1：公开日记 2：草稿本 3：分享日记）</param>
        /// <param name="commentNO">评论数目</param>
        /// <param name="readNO">阅读数目</param>
        /// <param name="open">权限：0：可以分享和转载 1：分享 2：转载 3：不能任何操作</param>
        /// <param name="reprintNO">转载次数</param>
        /// <param name="shareNO">分享次数</param>
        /// <param name="isDel">是否删除</param>
        public DiaryModel(string dId, string userName, string dtId, string content, DateTime dateTime, Int32 type, Int32 commentNO, Int32 readNO, Int32 open, Int32 reprintNO, Int32 shareNO, bool isDel)
        {
            this.c_vc_dId = dId;
            this.c_vc_userName = userName;
            this.c_vc_dtId = dtId;
            this.c_ntx_content = content;
            this.c_dt_dateTime = dateTime;
            this.c_i_type = type;
            this.c_i_commentNO = commentNO;
            this.c_i_readNO = readNO;
            this.c_i_open = open;
            this.c_i_reprintNO = reprintNO;
            this.c_shareNO = shareNO;
            this.c_b_isDel = isDel;
        }
    }
}
